{% extends "miramar/base.html" %}
{% load i18n %}
{% load miramar_tags %}

{% block title %}{% trans "Approve for publishing" %}{% endblock %}
{% block extrahead %}
{{ form.media }}
<script type="text/javascript" src="{{ MEDIA_URL }}{{ jquery_urlstub }}"></script>
<script type="text/javascript">
$(document).ready(function() {
  $("#header").hide();
  $(".breadcrumbs").hide();
});
</script>
{% endblock %}
{% block content_title %}<h1>{% trans "Approve for publishing" %}</h1>{% endblock %}

{% block content %}
<form action=".?popup=1" method="post">
<p>{% trans "You have requested the following version be approved for publishing" %}</p>
<dl>
  <dt>{% trans "Title" %}</dt>
  <dd>{{ page.title }}</dd>
  <dt>{% trans "Last editor" %}</dt>
  <dd>{{ pageversion.author.username }}</dd>
  <dt>{% trans "Last edited" %}</dt>
  <dd>{{ pageversion.time_stamp|date:'N j, Y P' }}</dd>
  <dt>{% trans "Comment" %}</dt>
  <dd>{{ pageversion.comment }}</dd>
</dl>
<p><input id="id_cancel" type="button" value="{% trans "Cancel" %}" /><input type="submit" value="{% trans "Confirm" %}" /></p>
<script type="text/javascript">
  $("#id_cancel").click(function() { window.parent.$.modal.close(); });
</script>
</form>
{% endblock %}